import http from '../http';

const MODULE_PREFIX = 'http://localhost:8081'

export function getProductDetail(productId) {
  return http.get(`${MODULE_PREFIX}/product/${productId}`);
}

export function getProductSkuList(productId) {
  return http.get(`${MODULE_PREFIX}/product/${productId}/skus`);
}

export function getProductList() {
  return http.get(MODULE_PREFIX + '/product/list');
} 